﻿using System.Web;
using IterationLife.PlatformBackEnd.AppServices.Dtos.Systems;
using IterationLife.System.Queries;
using Util.Applications;

namespace IterationLife.PlatformBackEnd.AppServices.Contracts.Systems {
    /// <summary>
    /// 附件服务
    /// </summary>
    public interface IAttachmentService : IApplicationService<AttachmentDto, AttachmentQuery>
    {
        /// <summary>
        /// 上传
        /// </summary>
        AttachmentDto Upload(string id);
        /// <summary>
        /// 上传
        /// </summary>
        AttachmentDto Upload(HttpPostedFile httpPostedFile);
        /// <summary>
        /// 上传
        /// </summary>
        AttachmentDto Upload(byte[] fileBytes, int size, string fileName);
    }
}